function jsutil(){
	return{
		endsWith: function (str,pattern) {
		    var d = str.length - pattern.length;
		    return d >= 0 && str.lastIndexOf(pattern) === d;
		}
	}
	
}
